import {createApp} from 'vue'
import App from './App.vue'
import router from './router'

import { createPinia } from 'pinia';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './theme/index.scss';
import {createPersistedState} from "pinia-persistedstate-plugin";
import locale from "element-plus/es/locale/lang/zh-cn";


// vue2.0
// import VueQr from 'vue-qr'
// vue3.0

// new Vue({
//     components: {VueQr}
// })

const app = createApp(App);


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
const pinia = createPinia();
pinia.use(createPersistedState())
app.use(ElementPlus,{locale})
app.use(pinia)
app.use(router);
app.mount('#app');
